import Vue from 'vue'
import App from './App'
import uView from './plugin/uview-ui'
import lEchart from './plugin/lime-echart/components/l-echart/l-echart.vue'
import request from '@/utils/request'
import Config from '@/core/config'
import {
  navTo,
  showToast,
  showSuccess,
  showError,
  getShareUrlParams
} from './core/app'

import './uni.promisify.adaptor'
// 后端api地址
const imageUrl = Config.get('imageUrl')
Vue.config.productionTip = false
Vue.use(uView)
Vue.component("lEchart",lEchart)
// 挂载全局函数
Vue.prototype.$Config = Config
Vue.prototype.$request = request
Vue.prototype.$toast = showToast
Vue.prototype.$success = showSuccess
Vue.prototype.$error = showError
Vue.prototype.$navTo = navTo
Vue.prototype.$getShareUrlParams = getShareUrlParams
App.mpType = 'app'
const app = new Vue({
  ...App
})
app.$mount()
